package com.ruoyi.mespro.service;

import java.util.List;
import com.ruoyi.mespro.domain.ShaftWarp;
import com.ruoyi.mespro.domain.WarpPdfReport;
import com.ruoyi.mespro.domain.WarpShafttypeReport;

/**
 * 整经数据汇总Service接口
 *
 * @author Jun Xiang
 * @date 2022-06-07
 */
public interface IShaftWarpService
{
    /**
     * 查询整经数据汇总
     *
     * @param id 整经数据汇总主键
     * @return 整经数据汇总
     */
    public ShaftWarp selectShaftWarpById(Long id);

    /**
     * 查询整经数据汇总列表
     *
     * @param shaftWarp 整经数据汇总
     * @return 整经数据汇总集合
     */
    public List<ShaftWarp> selectShaftWarpList(ShaftWarp shaftWarp);

    /**
     * 新增整经数据汇总
     *
     * @param shaftWarp 整经数据汇总
     * @return 结果
     */
    public int insertShaftWarp(ShaftWarp shaftWarp);

    /**
     * 修改整经数据汇总
     *
     * @param shaftWarp 整经数据汇总
     * @return 结果
     */
    public int updateShaftWarp(ShaftWarp shaftWarp);

    /**
     * 批量删除整经数据汇总
     *
     * @param ids 需要删除的整经数据汇总主键集合
     * @return 结果
     */
    public int deleteShaftWarpByIds(Long[] ids);

    /**
     * 删除整经数据汇总信息
     *
     * @param id 整经数据汇总主键
     * @return 结果
     */
    public int deleteShaftWarpById(Long id);
    public ShaftWarp selectTodayLastRecord();
    public ShaftWarp selectShaftWarpByShaftCode(String shaftCode);
    public ShaftWarp selectShaftWarpByCodeStatus(String shaftCode);
    public List<WarpShafttypeReport> selectWarpShafttypeReport(ShaftWarp shaftWarp);
    public List<ShaftWarp> selectWeavingShaftWarp(ShaftWarp shaftWarp);
    public List<WarpPdfReport> selectWarpPdfReport(ShaftWarp shaftWarp);

    public ShaftWarp selectLastShaftWarp(String maccode);
}
